"""
__author__ = 'heyanmin'
__time__ = '2021/4/24 10:02 下午'
"""
from selenium.webdriver.common.by import By

from web_po_wechat.page.base_page import BasePage
from web_po_wechat.page.contact import ContactPage


class AddDepartMent(BasePage):
    # 添加部门，部门添加成功返回到通讯录页面

    # 输入部门名称
    __add_department_name = (By.NAME,"name")
    # 选择部门
    # 确认按钮
    __submit = (By.CSS_SELECTOR, ".qui_btn ww_btn ww_btn_Blue")


    def add_department(self):
        self.driver.find_element(By.CSS_SELECTOR,".member_colLeft_top_addBtn").click()
        self.driver.find_element(By.CSS_SELECTOR,".js_create_party").click()
        self.driver.find_element


        return ContactPage(self.driver)